# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-lazy-object-proxy
_pkgname=lazy-object-proxy
pkgver=1.7.1
pkgrel=0
pkgdesc="Fast and thorough lazy object proxy"
url="https://github.com/ionelmc/python-lazy-object-proxy"
arch="all"
license="BSD-2-Clause"
depends="python3"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-pytest-runner py3-pytest-benchmark"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	remove-setuptools_scm.patch"
builddir="$srcdir/"$_pkgname-$pkgver

prepare() {
	default_prepare
	sed -e "s/%%PKGVER%%/$pkgver/" -i setup.cfg
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
cf80f2e43795cef09c0a6dde32276d54f5d66a2cf017d3e815868ec9925d989f7256bbf3e416c4445d13e0c9241733029d9a99f2556258f59c2c5267b3c35391  lazy-object-proxy-1.7.1.tar.gz
995e6f8a57f08095820fbe0d702636ed441264dda90e1a535be70e0dc3fb0e3f80e0619e4b4c742e5d4f1ef24f16247129a0ef1f6a89696244b404066aa958ce  remove-setuptools_scm.patch
"
